{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "7278756d",
   "metadata": {},
   "source": [
    "## 初识地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "c964e1e7",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用requests模块（Google chrome浏览器）\n",
    "import requests\n",
    "\n",
    "# 2.请求方法 ：GET\n",
    "\n",
    "# 3.URL地址 ：https://restapi.amap.com/v3/geocode/geo?parameters\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "# 4.准备参数，用于交换数据payload\n",
    "payload = {\n",
    "    \"key\":\"00bffc7e702b84c61887fc76b42ba88a\", \n",
    "    \"address\":\"广东省广州市从化区广州南方学院\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=geo_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "d516b7a0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "da7abc74",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区温泉镇中心大学南方学院',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.678280,23.628439',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "1cd8c50d",
   "metadata": {},
   "outputs": [],
   "source": [
    "# extensions=all\n",
    "# 1. 调用requests模块（goole chrome 浏览器）\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL 地址：https://restapi.amap.com/v3/place/text?parameters\n",
    "geo_url = \"https://restapi.amap.com/v3/place/text?parameters\"\n",
    "\n",
    "# 4. 准备参数：拥有交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"00bffc7e702b84c61887fc76b42ba88a\",\n",
    "    \"keywords\":\"广州|餐厅\",\n",
    "    \"city\":\"从化\",\n",
    "    \"citylimit\":\"true\"\n",
    "}\n",
    "\n",
    "# 5.发起请求\n",
    "r = requests.get(url = geo_url,params = payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "6623e29d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "fe7bf1f3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '773',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '江埔街红荔新村1栋104铺',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '16:00-05:00',\n",
       "    'rating': '3.9',\n",
       "    'open_time': '16:00-05:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/463ca579f3267da5be71e16fb0484cd6'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4b78dd7154eda9c4e06761563ea8e16e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/94684704babb13fe62c8862d69eabea0'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '振东餐厅',\n",
       "   'location': '113.594922,23.544329',\n",
       "   'tel': '13902329872',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H3LAL9WF'},\n",
       "  {'parent': [],\n",
       "   'address': '沿江南路302号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '科教文化服务;学校;高等院校',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/41a7fdab-3581-423f-b064-e665a7476092.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/792538b3-0815-47be-baf6-1890ee68193b.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/5dc55cbf-a082-4fe9-a56b-afa610be281e.jpg'}],\n",
       "   'typecode': '141201',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '广州工程技术职业学院(从化校区)',\n",
       "   'location': '113.583536,23.526981',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00141KIN5'},\n",
       "  {'parent': [],\n",
       "   'address': '环市东路551号美食城之一沙县小吃',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:09:23-22:00',\n",
       "    'rating': '3.6',\n",
       "    'open_time': '09:23-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/82195d15eb8ef53db5c6ad51d978b0c3'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '水利餐厅',\n",
       "   'location': '113.616225,23.558988',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIIR002'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街七星路256号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '10:00-21:30',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '10:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/14745a0bcc91e2aad6db8b513819469e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/63a1389bcfea443d92886a1f9719a200'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '味鼎餐厅',\n",
       "   'location': '113.608299,23.534583',\n",
       "   'tel': '13719218299',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3RMBE1L'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉东路温泉镇畔岛一街4号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c1e1c5564f0a2628c5b2a06cc587b64b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e7b15770c0e631d30b8689f9a89546be'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '品泉餐厅(从化店)',\n",
       "   'location': '113.661873,23.656136',\n",
       "   'tel': '020-87880088',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2AOCYY7'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街凤仪西路10号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '每天10:30-20:30',\n",
       "    'rating': '3.7',\n",
       "    'open_time': '10:30-20:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4d91e4d281524d60902c39f951c164e5'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '宏记餐厅',\n",
       "   'location': '113.583622,23.541245',\n",
       "   'tel': '13710939237',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFM9MIIP'},\n",
       "  {'parent': [],\n",
       "   'address': '太平开发区高湖路87号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3c13716a6b4a586734592873f8e7ca9e'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '艳子餐厅',\n",
       "   'location': '113.511782,23.448976',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL3ENUB'},\n",
       "  {'parent': [],\n",
       "   'address': '571乡道西50米',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/35e489f03097da889bee31c9fca8059f'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '铭记餐厅',\n",
       "   'location': '113.620244,23.479881',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKAZUUS'},\n",
       "  {'parent': [],\n",
       "   'address': '太平镇广从大道13号广州大学华软软件学院对面大城云溪酒店旁',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6cf4823e97ea7963361ca954affffde5'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '恒顺餐厅',\n",
       "   'location': '113.491054,23.452188',\n",
       "   'tel': '13268005332',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFITYFHG'},\n",
       "  {'parent': [],\n",
       "   'address': '鳌头镇旗杆市场棋糖街9号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd5d21b6bedfbfae0bd8752045396e32'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '锐记餐厅',\n",
       "   'location': '113.501935,23.581052',\n",
       "   'tel': '13076857272',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG58PG2'},\n",
       "  {'parent': [],\n",
       "   'address': '２５６省道与Ｓ１６佛清从高速入口交叉口西约180米',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '09:00-14:00；16:30-20:00',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '09:00-14:00 16:30-20:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4c9c7d1f8c0dab74336c1f901f9ef039'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '双凤餐厅',\n",
       "   'location': '113.675059,23.509629',\n",
       "   'tel': '020-87998985',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFAJ22Y'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街中田西路2号之二',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '33.00',\n",
       "    'opentime2': '10:00-14:30；16:30-20:30',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '10:00-14:30 16:30-20:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6fd41cacf8a129885e85f9122bba979a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55b5b72ca31058fe016b4c15'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e4fb10c91485344ccc2757fbbb4b7985'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '喜园餐厅(中田西路店)',\n",
       "   'location': '113.584309,23.543586',\n",
       "   'tel': '13310881076;020-87920288;18902323121',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141RH22'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇温泉东路80号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '70.00',\n",
       "    'opentime2': '08:00-23:00',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '08:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/53861669aef0902a48a70997e12df78f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1f702dcfbc12b70a78a5b3ab9319c130'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1fc5e19b419e66df73ecc8fe2e3b7d97'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '陶然餐厅',\n",
       "   'location': '113.652237,23.649106',\n",
       "   'tel': '020-87830888;020-87838844',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140AB59'},\n",
       "  {'parent': [],\n",
       "   'address': '新城西路133号西宁小学旁新宁宾馆一楼',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/292c09692827f164e6143c6346a2fc00'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '主题餐厅',\n",
       "   'location': '113.578507,23.555059',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3ZBN3VY'},\n",
       "  {'parent': [],\n",
       "   'address': '592乡道附近',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.6',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/979411b23b1e4d0e8c9b9fbc81b49636'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3a899658c0dc4915b789732b1b919d04'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '广州从化太平馨业园餐馆',\n",
       "   'location': '113.582749,23.435374',\n",
       "   'tel': '13434195268',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL32Y35'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇龙泉路5号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:10:00-21:30',\n",
       "    'rating': '3.6',\n",
       "    'open_time': '10:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d3cc24eb231a15ae453aafe3497da063'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '广州市从化温泉泉韵餐厅',\n",
       "   'location': '113.647625,23.619287',\n",
       "   'tel': '18823036561',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL0VX2A'},\n",
       "  {'parent': [],\n",
       "   'address': '草埔村上三队22号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '10:30-01:30',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '10:30-01:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/aff2ed2325b070c67dcfcaddae5bd983'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ff773736b763b006bc8ea7cf4b82e135'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d67c8d055e701ff289d882a6c9830a07'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '香镇庄园餐厅',\n",
       "   'location': '113.928599,23.769676',\n",
       "   'tel': '13268008300',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GUPYYEXQ'},\n",
       "  {'parent': [],\n",
       "   'address': '环市东路222号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '11:30-24:00',\n",
       "    'rating': [],\n",
       "    'open_time': '11:30-24:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1ac2f1d50b62ca31ba51117a9a0e3c55'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5cdf9f973e599361d0b4fa292a61f249'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '第一家餐厅',\n",
       "   'location': '113.615164,23.558178',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT1952'},\n",
       "  {'parent': [],\n",
       "   'address': '流溪香雪大街温泉竹庄森林别墅',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '51.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.3',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4c082c737ed6d5c1bdabb654c0446bea'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/25c4f342380b0e91ce642807dc9b55c8'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '流溪鱼村餐厅',\n",
       "   'location': '113.787132,23.743460',\n",
       "   'tel': '13138653831',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGRCWHI'},\n",
       "  {'parent': [],\n",
       "   'address': '流溪河林场黄竹塱五隊',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '11:00-00:30',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '11:00-00:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/357a96d6d904e7dac390823332b93db7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2a3b34929c085bd83d7c1a1e4cd8e333'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '广州从化区良口味鲜源饭店',\n",
       "   'location': '113.778361,23.742949',\n",
       "   'tel': '13719393369',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLAG169'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8fc5ef61",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
